﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DA;

namespace BLL
{
    public class Room_BLL
    {
        public static Room_DAL cls = new Room_DAL();
        #region[Get-Data]
        public DataTable GetRoom()
        {
            return cls.GetRoom();
        }
        public DataTable GetRoomWareHouse(int id)
        {
            return cls.GetRoomWareHouse(id);
        }
        public DataTable GetRoomDetail_Edit(int id)
        {
            return cls.GetRoomDetail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertRoom(ET.Room_ET obj)
        {
            return cls.InsertRoom(obj);
        }
        public static bool UpdateRoom(ET.Room_ET obj)
        {
            return cls.UpdateRoom(obj);
        }
        public static bool DeleteRoom(int id)
        {
            return cls.DeleteRoom(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}